package com.github.icloudpay.crm.core.biz;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.github.icloudpay.crm.core.entity.OrderRecharge;
import com.github.icloudpay.crm.core.mapper.OrderRechargeMapper;
import com.github.wxiaoqi.security.common.biz.BaseBiz;

/**
 * 充值订单
 *
 * @author centerroot
 * @email lfw6699@163.com
 * @date 2018-05-25 15:20:48
 */
@Service
public class OrderRechargeBiz extends BaseBiz<OrderRechargeMapper,OrderRecharge> {
	
	private static final Logger logger = LoggerFactory.getLogger(OrderRechargeBiz.class);
	
	@Autowired
	private OrderRechargeMapper rechargeMapper;
	
	/**
	 * 充值记录
	 * @param map
	 * @return
	 */
	public Map<String, Object> queryRechargeRecord(Map<String, Object> map) {
		logger.info("查询充值记录参数。。{}"+map);
		Map<String, Object> respMap = new HashMap<>();
		List<OrderRecharge> list = rechargeMapper.queryRechargeRecord(map);
		logger.info("查询充值记录。。{}"+list);
		respMap.put("records", list);
		return respMap;
	}
}